package io.a;

import kong.unirest.HttpResponse;
import kong.unirest.Unirest;

public class App {
    public static void main( String[] args ) {


//        Unirest.setTimeouts(0, 0);
        HttpResponse<String> response = Unirest.put("http://10.10.40.100:7000/web/algorithm/v1/pushDevice/byIds")
                .header("Authorization", "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsicmVzMSJdLCJ1c2VyX2lkIjoiMSIsInVzZXJfbmFtZSI6InN5c3RlbSIsInNjb3BlIjpbImFsbCJdLCJleHAiOjE3MTUyMzkyMTcsImF1dGhvcml0aWVzIjpbIjEiXSwianRpIjoiUXI2U1JCWGJBd2IzTHJTWXFxYWVBTERvSWFrIiwiY2xpZW50X2lkIjoidW5pdmVyc2FsLXdlYiJ9.s3NrPV7ffyXXIFV1LGTTQ9Zq3XH2So5kli-4I2-lGWY")
                .header("Content-Type", "application/json")
                .body("[\r\n  {\r\n    \"id\": 1001\r\n  },\r\n  {\r\n    \"id\": 1002\r\n  }\r\n]")
                .asString();

    }
}
